﻿@using DirectSell.Model.User
@using Webdiyer.WebControls.Mvc;
@model PagedList<UserInforMationDetails>

<table class="table table-border table-bordered table-hover table-bg table-sort">
    <thead>
        <tr class="text-c">
            @*<th width="25"><input type="checkbox" name="" value=""></th>*@
            <th width="80">序号</th>
            <th width="100">会员编号</th>
            <th width="100">会员级别</th>
            <th width="100">联系方式</th>
            <th width="40">姓名</th>
            <th width="100">状态</th>
            <th width="100">操作</th>
        </tr>
    </thead>
    <tbody>
        @{ int i = 0;}
        @foreach (var item in Model)
        {
            <tr class="text-c">
                <td>@(Model.StartItemIndex + i++)</td>
                <td><u style="cursor:pointer" class="text-primary" onclick="member_show('@item.UserName', '/Manager/ServiceCenterAudit/CenterInfo?usercode=@item.UserCode', '10001', '360', '400')">@item.UserCode</u></td>
                <td>@item.LevelName</td>
                <td>@item.Phone</td>
                <td>@item.UserName</td>
                @switch (item.IsCenterService)
                {
                    case 2:
                        <td class="td-status"><span class="label label-purple radius">待审核</span></td>
                        break;
                    case 1:
                        <td class="td-status"><span class="label label-success radius">已开通</span></td>
                        break;
                }
                <td class="td-manage">
                 @if (item.IsCenterService == 2)
                {
                        <a style="text-decoration:none" onClick="Agree('@item.UserCode',1)" title="确认"> <i class="Hui-iconfont">&#xe63f;</i></a>
                        <a style="text-decoration:none" class="ml-5" onClick="Refuse('@item.UserCode',0)" href="javascript:;" title="拒绝"> <i class="Hui-iconfont">&#xe631;</i></a>
                 }
                 else
                 {
                    <button type="button" id="loginbtn" onclick="UserLogin('@item.UserCode')" class="btn btn-primary login-bg">登录</button>
                 }
            </tr>
        }
    </tbody>
</table>

